import Vue from 'vue'
import App from './App'
import store from './store'
import { appid, APP_NAME } from '@/common/utils/config'
import EmptyData from '@/components/emptydata'
import WxAuth from '@/components/head'
import VueBus from '@/common/utils/bus'
import utils from '@/common/utils'
import cuCustom from '@/components/cu-custom'
import cuTabs from '@/components/cu-tabs'

Vue.component('cu-custom',cuCustom) // 头部导航
Vue.component('cu-tabs', cuTabs) // 滑动导航
Vue.component('empty-data', EmptyData) // 空数据模板
Vue.component('wx-auth', WxAuth) // 验证登录
Vue.use(VueBus)

App.mpType = 'app'
Vue.config.productionTip = false
Vue.prototype.utils = utils
Vue.prototype.$appid = appid
Vue.prototype.$store = store

const app = new Vue({
	store,
    ...App
})
app.$mount()